<template>
  <div class="form-single-fragment" style="position: relative;">
    <el-form :model="detailData" label-width="100px" size="mini" label-position="right">
      <el-row :gutter="20" class="form-single-info">
        <el-col :span="20">
          <el-col :span="12">
            <el-form-item label="企业名称">{{detailData.enterpriseName}}</el-form-item>
          </el-col>
          <el-col :span="12">
            <el-form-item label="单位属性">{{detailData.unitAttribute}}</el-form-item>
          </el-col>
          <el-col :span="12">
            <el-form-item label="所在地区">{{detailData.districtName}}</el-form-item>
          </el-col>
          <el-col :span="12">
            <el-form-item label="资质等级">{{detailData.qualificationLevel}}</el-form-item>
          </el-col>
          <el-col :span="12">
            <el-form-item label="负责人">{{detailData.manager}}</el-form-item>
          </el-col>
          <el-col :span="12">
            <el-form-item label="职务">{{detailData.custPost}}</el-form-item>
          </el-col>
          <el-col :span="12">
            <el-form-item label="手机号">{{detailData.telephone}}</el-form-item>
          </el-col>
          <el-col :span="12">
            <el-form-item label="我方对接人">{{detailData.ourContacts}}</el-form-item>
          </el-col>
          <el-col :span="24">
            <el-form-item label="业务范畴">{{detailData.businessScope}}</el-form-item>
          </el-col>
          <el-col :span="24">
            <el-form-item label="企业简介">{{detailData.enterpriseProfile}}</el-form-item>
          </el-col>
        </el-col>
      </el-row>
    </el-form>
  </div>
</template>

<script>
import { EcologicalkKnowledge } from '@/api/knowledgeBases.js';
export default {
  name: 'EcologicalDetail',
  props: {
    EcologicalId: {
      default: undefined
    }
  },
  data () {
    return {
      isShowloading: false,
      detailData: {}
    };
  },
  mounted () {
    this.loadknowledgedetail()
  },
  methods: {
    /**
     * 知识库详情
     */
    loadknowledgedetail () {
      let params = this.EcologicalId
      return new Promise((resolve, reject) => {
        EcologicalkKnowledge.detail(this, params).then(res => {
          this.detailData = res.data
        }).catch(e => {
          reject(e);
        });
      });
    }
  }
}
</script>

<style scoped>
h3{border-bottom: 1px solid #E9E9EB;padding: 0 0 10px;}
.table_container{margin: 10px 0;}
.form-single-info{display: flex;justify-content: center;}
.el-form-info{box-shadow: 0 0 10px rgba(0,0,0,0.05);padding: 20px;}
.el-form-info strong{margin: 0 10px;}
.el-form-info .el-time-picker{width: 100%;}
</style>
